/**
 * Created by Administrator on 2017-12-06.
 */
$(document).ready(function(){
    $(".btn2").on("click",function(e){
        e=e||window.event;
        e.stopPropagation();
        e.preventDefault();
       var href=$(this).attr("href");
        var tr=$(this);
        $.get(href,function(text){
            if(text=="ok")
            {
                $(tr).parent().parent().remove();


                $.toast({
                    heading: '提示',
                    text: '已删除',
                    showHideTransition: 'slide',
                    position: 'top-right',
                    icon: 'success'
                })
            }
        })
    })

    $(".birthday").on("focus",function(){
        $(this).datepicker({
            format:'yyyy-mm-dd',
            autoclose:'true',
            todayHighlight:true,
            language:'zh-CN'
    });
    })
})